package com.supcon.exchangedata.pojo.entity.oracle;

import lombok.Data;

import javax.persistence.*;
import javax.persistence.Column;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.sql.Date;
import java.time.LocalDateTime;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: yangbin
 * @Date: 2022/03/17/16:13
 * @Description:
 */
@Entity
@Data
@IdClass(RealTimeKeys.class)
@Table(name = "STATISTICAL_REAL_TIME_DATA")
public class StatisticalRealTimeData {
    @Basic
    @Column(name = "ID")
    private int id;
    @Basic
    @Id
    @Column(name = "OBJ_TYPE")
    private Long objType;
    @Basic
    @Id
    @Column(name = "OBJ_ID")
    private Long objId;
    @Basic
    @Id
    @Column(name = "DATA_TYPE")
    private Long dataType;
    @Basic
    @Id
    @Column(name = "SUM_TYPE")
    private Long sumType;
    @Basic
    @Column(name = "CUR_MONTH")
    private String curMonth;
    @Basic
    @Column(name = "CUR_MONTH_VALUE")
    private BigDecimal curMonthValue;
    @Basic
    @Column(name = "CUR_DATE")
    private LocalDateTime curDate;
    @Basic
    @Column(name = "CUR_DATE_VALUE")
    private BigDecimal curDateValue;
    @Basic
    @Column(name = "CUR_HOUR")
    private LocalDateTime curHour;
    @Basic
    @Column(name = "CUR_HOUR_VALUE")
    private BigDecimal curHourValue;
    @Basic
    @Column(name = "CUR_MINUTE")
    private Date curMinute;
    @Basic
    @Column(name = "CUR_MINUTE_VALUE")
    private BigDecimal curMinuteValue;
    @Basic
    @Column(name = "LASTUPDATETIME")
    private LocalDateTime lastupdatetime;
    @Basic
    @Column(name = "UNIT")
    private String unit;
}
